package com.bins.es.dao;

import com.bins.es.eo.UserModel;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface UserRepository extends ElasticsearchRepository<UserModel, Long> {

    Page<UserModel> findByAge(Integer age, Pageable pageable);

    Page<UserModel> findByGender(String gender, Pageable pageable);

}
